home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9597 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  988 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Converting to "FULL" ASCII
  5. Date: 11 Mar 1996 13:59:41 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4i27odINN3ki@keats.ugrad.cs.ubc.ca>
  8. References: <4i0prp$tn6@lantana.singnet.com.sg>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4i0prp$tn6@lantana.singnet.com.sg>,
  12. Charles Lai <se7212079@ntuvax.ntu.ac.sg> wrote:
  13. >Hi... Does anyone know how to convert an integer 0-255 to its extended
  14. >ASCII representation?
  15.  
  16. Characters are integral types in C. No conversion is necessary.   You do need
  17. to use unsigned char, because C guarantees a maximum value of only 127 for
  18. signed characters, but 255 for unsigned, and these are the actual limits on
  19. many implementations.
  20.  
  21. >toascii only convert up to 127....
  22.  
  23. What is "toascii"? This is not a standard defined function. Are you sure we are
  24. talking about C here?
  25. -- 
  26.  
  27.